import Vue from 'vue'
import VueRouter from 'vue-router'
import DemoHome from '../components/demo/Home.vue'
import Index from '../components/pubComponents/Index.vue'
import AuthManager from '../components/auth/Manager.vue'
import AuthManagerEdit from '../components/auth/ManagerEdit.vue'
import AuthRoleEdit from '../components/auth/RoleEdit.vue'
import AuthRole from '../components/auth/Role.vue'
import AuthRoleManager from '../components/auth/RoleManager.vue'
import AuthRolePermission from '../components/auth/RolePermission.vue'
import AuthRoleMenu from '../components/auth/RoleMenu.vue'
import AuthPermission from '../components/auth/Permission.vue'
import AuthPermissionEdit from '../components/auth/PermissionEdit.vue'
import AuthPermissionManager from '../components/auth/PermissionManager.vue'
import AuthMenu from '../components/auth/Menu.vue'
import AuthMenuEdit from '../components/auth/MenuEdit.vue'
import LayoutBanner from '../components/layout/Banner.vue'
import LayoutBannerEdit from '../components/layout/BannerEdit.vue'

Vue.use(VueRouter);

const router = new VueRouter({
    routes: [
        {
            path: '/',
            component: Index,
            children:[
                {
                    path: '/',
                    component: DemoHome
                },
                {
                    path: 'auth/manager',
                    component: AuthManager
                },
                {
                    path: 'auth/manager/edit',
                    component: AuthManagerEdit
                },
                {
                    path: 'auth/role',
                    component: AuthRole
                },
                {
                    path: 'auth/role/edit',
                    component: AuthRoleEdit
                },
                {
                    path: 'auth/role/manager',
                    component: AuthRoleManager
                },
                {
                    path: 'auth/role/permission',
                    component: AuthRolePermission
                },
                {
                    path: 'auth/role/menu',
                    component: AuthRoleMenu
                },
                {
                    path: 'auth/permission',
                    component: AuthPermission
                },
                {
                    path: 'auth/permission/edit',
                    component: AuthPermissionEdit
                },
                {
                    path: 'auth/permission/manager',
                    component: AuthPermissionManager
                },
                {
                    path: 'layout/banner',
                    component: LayoutBanner
                },
                {
                    path: 'layout/banner/edit',
                    component: LayoutBannerEdit
                },
                {
                    path: 'auth/menu',
                    component: AuthMenu
                },
                {
                    path: 'auth/menu/edit',
                    component: AuthMenuEdit
                }
            ]
        }
    ]
});

export default router